package com.fdb.efp.nls.service.impl;

import com.fdb.basic.framework.core.base.FrameworkService;
import com.fdb.efp.nls.service.dao.LoanAccountTempDao;
import com.fdb.efp.nls.service.domain.LoanAccountTemp;
import com.fdb.efp.nls.service.facade.LoanAccountTempService;
import com.fdb.efp.nls.service.vo.LoanAccountTempVO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("loanAccountTempService")
public class LoanAccountTempServiceImpl implements LoanAccountTempService, FrameworkService {
	private static Logger logger = LoggerFactory.getLogger(BatCircleaccServiceImpl.class);

	@Autowired
	private LoanAccountTempDao loanAccountTempDao;

	/**
	 * 查询数据
	 * 
	 * @description:TODO
	 * @param loanPolicyVo
	 * @return
	 * @date:2019年1月2日 下午5:25:41
	 * @author:cenyj
	 */
	public List<LoanAccountTempVO> getLoanAccountTempList() {
		logger.debug("当前查询数据信息的参数信息为:");
		List<LoanAccountTempVO> list = null;
		try {
			List<LoanAccountTemp> loanAccountTempVOs = loanAccountTempDao.getLoanAccountTempList();
			logger.debug("当前查询数据信息的结果集数量为:" + loanAccountTempVOs.size());
			list = (List<LoanAccountTempVO>) beansCopy(loanAccountTempVOs, LoanAccountTempVO.class);
		} catch (Exception e) {
			logger.error("数据转换出现异常!", e);
		}

		return list;

	}
}
